SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 39578: Aggregate file storage issues when file names contain special characters.

DetailsAboutRate It

When a FILENAME statement points to a folder and the INFILE statement that uses it adds the specific file to read, errors are generated if the physical file contains special characters like quotes or parentheses.

Prior to SAS 9.2 the only solution was to combine the path and name into either the FILENAME or INFILE statement. With SAS 9.2 and beyond, code similar to the following will work correctly:

   filename CSVFILES "C:\junk\";
   data _1;
     infile CSVFILES("a(asd).txt") dsd;
     input A B C;
   run;


Operating System and Release Information

Product FamilyProductSystemSAS Release
ReportedFixed*
SAS SystemBase SASMicrosoft Windows XP 64-bit Edition9.1 TS1M39.2 TS2M2
Microsoft® Windows® for 64-Bit Itanium-based Systems9.1 TS1M39.2 TS2M2
Microsoft Windows XP Professional9.1 TS1M39.2 TS2M2
Windows Vista9.1 TS1M39.2 TS2M2
Windows Vista for x649.1 TS1M39.2 TS2M2
* For software releases that are not yet generally available, the Fixed Release is the software release in which the problem is planned to be fixed.